<?php require_once('../../core/import.php');?>
<?php User::Permission('ACCOUNT_DELETE'); ?>
<?php
    if(!is_numeric($ID=Functions::UrlArgs('id')))
    {
        exit('信息ID不正确');
    }
    else
    {
        if($Data=DB::GetRowByID('account',$ID))
        {
            //删除记录将添加至回收站
		DB::Insert('account_delete',array
			(
				'Account'=>$Data['Username'],
				'Datetime'=>date('Y-m-d G:i:s')
			));
        }

        Functions::JsLocation($_SERVER['HTTP_REFERER']);
    }
?>